import { createRouter, createWebHistory } from 'vue-router'
import IgnoreRuleList from '@/views/IgnoreRuleList.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      redirect: '/ignore-rules',
    },
    {
      path: '/ignore-rules',
      name: 'ignoreRules',
      component: IgnoreRuleList,
      meta: {
        title: '忽略规则管理',
      },
    },
  ],
})

export default router
